//
//  WXLMusicListModel.m
//  段子手
//
//  Created by dllo on 16/3/26.
//  Copyright © 2016年 JokesTeam. All rights reserved.
//

#import "WXLMusicListModel.h"

@implementation WXLMusicListModel

- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super initWithDic:dic];
    if (self) {
        
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"_id"]) {
        self._id = [value stringValue];
    }
    if ([key isEqualToString:@"listen_count"]) {
        
        CGFloat f = [value floatValue];
        if (f >= 10000) {
            self.listen_count = [NSString stringWithFormat:@"♡ %.1f万", f / 10000];
        } else {
            self.listen_count = [NSString stringWithFormat:@"♡ %.0f", f];
        }
    }
}


@end
